package rollercoaster.superfonta;

import java.util.LinkedList;

import rollercoaster.superfonta.math.SFMatrix4f;


public class ContextCamera{
	
	private iCameraState cameraState;
	
	private iCameraState camera1 = new Camera1();
	private iCameraState camera2 = new Camera2();
	private iCameraState camera3 = new Camera3();
	
	private LinkedList<iCameraState> camerasList = new LinkedList<iCameraState>();

	public ContextCamera() {
		camerasList.add(camera1);
		camerasList.add(camera2);
		camerasList.add(camera3);
	}
	
	public void setCameras(int index){
		this.cameraState = camerasList.get(index-1);
	}
	
	public void setCameraMode(SFCamera camera, SFMatrix4f cameraMatrix) {
		
		this.cameraState.setCameraMode(camera, cameraMatrix);
	}
	
	public iCameraState getCameraState() {
		return cameraState;
	}


}
